package cn.rebeater.navigationclient.ui.dashboard;

import androidx.lifecycle.LiveData;
import androidx.lifecycle.MutableLiveData;
import androidx.lifecycle.ViewModel;


public class DashboardViewModel extends ViewModel {

    private final MutableLiveData<NavigationData> pva;


    public DashboardViewModel() {
        pva = new MutableLiveData<>();
    }

    public LiveData<NavigationData> getNav() {
        return pva;
    }


    public void addPosition(NavigationData nav){
        pva.setValue(nav);
    }
}